package com.chcit.mobile.mvp.ui.adapter;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.chcit.mobile.R;
import com.chcit.mobile.mvp.model.entity.InventoryPlanBean;
import com.chcit.mobile.mvp.model.entity.StorageBean;

import java.util.List;

public class InventoryPlanQueryAdapter extends BaseQuickAdapter<InventoryPlanBean,BaseViewHolder> {

    public InventoryPlanQueryAdapter(@Nullable List<InventoryPlanBean> data) {
        super(R.layout.item_plan_query_data,data);
    }

    @Override
    protected void convert(BaseViewHolder helper, InventoryPlanBean item) {
        helper.setText(R.id.tv_InventoryPlanTypeName,item.getInventoryPlanType());
        helper.setText(R.id.tv_inventory_DocStatusName,item.getDocStatusName());
        helper.setText(R.id.tv_inventory_docDate,item.getDocDate());
        helper.setText(R.id.tv_inventory_documentNo,item.getDocumentNo());
        helper.setText(R.id.tv_inventory_VendorName,item.getOrgName());
    }
}
